package com.test.moshi.huidiao;

public class HuiDiaoServer {
    //还是不够抽象，还是锁总的异步回调抽象的好，抽象太重要了
    public void printSome(String str,Client client)
    {
        System.out.println("printSome 被调用" +str);
        client.huidiao(str);
        System.out.println("异步接口回调");
        new Thread(new Runnable() {
            @Override
            public void run() {
                client.huidiao(str);
            }
        }).start();
    }

}
